import React from "react";
import { useUsers } from "../utils/user";
import { IdSelect } from "./id-select";

//下拉选择框
export const UserSelect = (props:React.ComponentProps<typeof IdSelect>)=>{
    const {data:users} = useUsers();
    return <IdSelect options={users||[]} {...props}/>
}